package com.superbytecode.stencil.service;

import com.superbytecode.stencil.repository.domain.Datasource;
import com.superbytecode.stencil.repository.mapper.DatasourceMapper;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * All rights Reserved, Designed By www.super-master.com
 *
 * @ProjectName: code-stencil
 * @Package: com.superbytecode.stencil.service
 * @ClassName: GenDatasourceService
 * @Description: []
 * <p> </p>
 * @Author: [Lance Ting]
 * @Date: 2024/10/11 16:48
 * @Version: V1.0
 * @Copyright: 2024 www.super-master.cn Inc. All rights reserved.
 * TODO: 注意,本文件Lance Ting所作,如果转载或使用请标明具体出处!
 **/
@Slf4j
@Service
public class DatasourceService {
    @Resource
    private DatasourceMapper datasourceMapper;

    public Datasource obtainDatasource(Long datasourceId) {
        return datasourceMapper.selectByPrimaryKey(datasourceId);
    }
}